#include "arraylist.h"

int main(void)
{
	int err;
	struct arraylist array;
	int data[] = {12, 13, 23, 34, 11};

	init_list(&array);

	for (int i = 0; i < sizeof(data) / sizeof(data[0]); i++)
		add(&array, data[i]);

	// clear(&array);
	if ((err = is_empty(&array)) == 1)
		printf("数组为空\n");
	else
		printf("数组不为空\n");
	show(&array);
	printf("%d",get_member(&array,6));
	Delete(&array, 2);
	show(&array);

	clear(&array);

	return 0;
}
